package com.mine.collections;

import org.junit.Test;

import java.util.HashSet;
import java.util.Set;

/**
 * TODO
 *
 * @author wangtonggui
 * @version 1.0.0
 * @since 2021/09/15 18:37
 */
public class SetDemos {
  @Test
  public void equals() {
    Set<String> a = new HashSet<>();
    a.add("1");
    a.add("2");
    a.add("3");

    Set<String> b = new HashSet<>();
    a.add("1");
    a.add("2");
    a.add("3");
    System.out.println(a.equals(b));
  }
}
